MPHB\Entities\AbstractCoupon A

Total Complexity 63
Dependencies 4
Dependents 2
Total lines 330
Lines of code 133
Logical lines of code 68
Comment lines 116
Methods 24
Properties 15

Methods 24

Method Rating Maintainability Complexity Lines of code
isValidForBookingContents()
B
45 18 39
__construct()
A
52 12 19
validate()
A
57 9 15
isExceedUsageLimit()
S
79 2 3
isApplicableForRoomType()
S
78 2 3
isExpired()
S
78 2 3
getMaxNights()
S
83 1 3
increaseUsageCount()
S
82 1 3
getUsageCount()
S
82 1 3
isPublished()
S
80 1 3
getUsageLimit()
S
83 1 3
getMinNights()
S
83 1 3
getId()
S
83 1 3
getMaxDaysBeforeCheckIn()
S
83 1 3
getMinDaysBeforeCheckIn()
S
83 1 3
getCheckOutDateBefore()
S
83 1 3
getCheckInDateAfter()
S
83 1 3
getRoomTypes()
S
83 1 3
getExpirationDate()
S
83 1 3
getAmount()
S
83 1 3
getDescription()
S
83 1 3
getCode()
S
83 1 3
getStatus()
S
83 1 3
calcRoomDiscount()
S
100 1 0